package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.mapper.ExamRuleMapper;
import com.example.demo.model.ExamRule;
@Service
public class ExamRuleService {

	@Autowired
	private ExamRuleMapper examRuleMapper;
	
	public List<ExamRule> selectExamRule(Integer car, Integer course){
        //单表自定义查询
		ExamRule model=new ExamRule();
        model.setCar(car);
        model.setCourse(course);
        return examRuleMapper.select(model);
    }
}
